import request from '@/utils/request'

const baseUrl = 'http://10.34.12.48:7001';
export function getPaperList() {
  return request({
    url: `${baseUrl}/paper/paperList`,
    method: 'get'
  })
}

export function createPaper(data) {
  return request({
    url: `${baseUrl}/paper/createPaper`,
    method: 'post',
    data
  })
}

export function updatePaper(data) {
  return request({
    url: `${baseUrl}/paper/updatePaper`,
    method: 'put',
    data
  })
}

export function getExamList() {
  return request({
    url: `${baseUrl}/paper/examList`,
    method: 'get'
  })
}

export function createExam(data) {
  return request({
    url: `${baseUrl}/paper/createExam`,
    method: 'post',
    data
  })
}

export function updateExam(data) {
  return request({
    url: `${baseUrl}/paper/updateExam`,
    method: 'put',
    data
  })
}
